using System;
using DataEntities.Base;

namespace DataEntities
{
    public class HistoryAbonentPay:BusinesObjectBase
    {
        private DateTime _dateChange;
        private int _abonentPayValue;
        private Dogovor _dogovor;

        public virtual DateTime DateChange{get { return _dateChange; }set{_dateChange=new DateTime(value.Year,value.Month,value.Day);}}
        public virtual int AbonentPayValue { get { return _abonentPayValue; } set { _abonentPayValue = value; } }
        public Dogovor Dogovor { get { return _dogovor; } set { _dogovor = value; } }

        protected HistoryAbonentPay():base(0){}

        public HistoryAbonentPay(DateTime dateChange, int abonentPayValue, Dogovor dogovor)
            : this(0,dateChange,abonentPayValue,dogovor)
        {

        }
        public HistoryAbonentPay(int id,DateTime dateChange,int abonentPayValue,Dogovor dogovor):base(id)
        {
            _dateChange = dateChange;
            _abonentPayValue = abonentPayValue;
            _dogovor = dogovor;
        }
    }
}